﻿using King.Box.OpenApi.AppStart;
using System.ServiceProcess;

namespace King.Box.OpenApi.Install
{
    partial class MainService : ServiceBase
    {
        public MainService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            ApiServer.Instance.Start();
        }

        protected override void OnStop()
        {
            ApiServer.Instance.Stop();
        }
    }
}
